package com.wn.cloud.rule;

import com.netflix.loadbalancer.IRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @FileName: MySelfRule
 * @Description: 定制ribbon负载均衡策略
 * @Author: MaWenHao
 * @Created: 2020/3/10 - 23:56
 * @Version: V1.0
 * @Company: 东方微银科技（北京）有限公司
 */
@Configuration
public class MySelfRule {

    @Bean
    public IRule myRule() {
        return new MyRoundRule();
    }
}
